import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/live/Index.vue'
import login from '@/components/login.vue'
import userdetail from '@/components/user/user-detail.vue'
import userinfo from '@/components/user/userinfo.vue'
import updatePassword from '@/components/user/updatePassword.vue'
import seat from '@/components/seat/seat.vue'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/',
      name:'index',
      component: index,
     },
    {
      path:'/user/user-detail',
      component:userdetail,
      children:[
        {
          path:'/userinfo',
          name:'我的资料',
          component:userinfo
        },
        {
          path:'/updatePassword',
          name:'updatePassword',
          component:updatePassword
        }
      ]
    },
   {
      path:'/login',
      name:'login',
      component:login
    },
    {
      path:'/seat',
      name:'seat',
      component:seat
    },


  ]
})
